package com.rgp.servicedriveruser.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rgp.internalcommon.response.DriverCarResponse;
import com.rgp.servicedriveruser.pojo.DriverCarBindingRelationship;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-16 21:03
 */
@Repository
public interface DriverCarBindingRelationshipMapper extends BaseMapper<DriverCarBindingRelationship> {
    Integer checkBindState(@Param("ship") DriverCarBindingRelationship driverCarBindingRelationship);

    List<DriverCarResponse> getAvailableDriversByCarIds(List<String> carIds);
}